import request from '@/utils/request';
import {ElMessage} from 'element-plus'


/**
 * 查询文章详细信息
 * @returns {Promise<any>}
 */
export async function selectTypePath(typeId) {
    const res = await request.get('/site/cms/type/path/' + typeId);
    if (res.data.code === 200) {
        return res.data;
    }
    return Promise.reject(ElMessage.error(res.data.msg));
}